import * as types from 'store/mutation-types'

class Footer {
    constructor(footer) {
        this.isShow = (footer && footer['isShow']) ? footer['isShow'] : true
    }
}

// initial state
const state = {
    footer: new Footer()
}

// getters
const getters = {
    footer: (state) => {
        return new Footer()
    }
}

// mutations
const mutations = {
    [types.UPDATE_FOOTER](state, footer) {
        Object.assign(state.footer, footer);
    }
}

export default {
    state,
    mutations
}
